package com.resume.entity

import com.baomidou.mybatisplus.annotation.*
import java.time.LocalDateTime

@TableName("templates")
data class Template(
    @TableId(type = IdType.AUTO)
    val id: Long? = null,
    
    val name: String,
    val type: String,
    val description: String? = null,
    val previewImage: String? = null,
    val templateData: String? = null,
    val category: String = "general",
    val isActive: Int = 1,
    val sortOrder: Int = 0,
    
    @TableField(fill = FieldFill.INSERT)
    val createdTime: LocalDateTime? = null,
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    val updatedTime: LocalDateTime? = null,
    
    @TableLogic
    val deleted: Int = 0
) 